package org.quickserver.net.SHZC.control;

import com.dykj.fireFighting.web.model.report.DevHisZc;
import org.quickserver.net.model.GBServerDataAll;
import org.quickserver.net.model.ZCServerData;
import org.quickserver.net.server.ClientHandler;
import org.quickserver.util.data.dataProcessing;

public class ZC4 {
    public ZC4()
    {
    }

    public static DevHisZc ZC4OBJ(ClientHandler handler, String strs[])
    {
        ZCServerData ec = (ZCServerData)handler.getClientData();
        String uStr[] = dataProcessing.strsToStrs(strs, 12, 19);
        String uniqueCode = dataProcessing.strsToStr(uStr);
        //System.out.println(uniqueCode);
        ec.setUniqueCode(uniqueCode);
        Object obj = GBServerDataAll.devMap.get(uniqueCode);
        if(obj != null)
            ec.setDevType(obj.toString());
        GBServerDataAll.handlerMap.put(uniqueCode, handler);
        return null;
    }
}
